<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\OrderLog
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property int $order_id 托管订单ID
 * @property int $device_id 算力ID
 * @property int $use 使用用算力
 * @property int $status 状态 0-已过期  1-进行中
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \App\Models\User $user
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog whereDeviceId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog whereOrderId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog whereUse($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderLog whereUserId($value)
 * @mixin \Eloquent
 */
class OrderLog extends Model
{
    protected $table = 'order_logs';

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
